package com.atung.parking.service;

import com.atung.parking.config.result.ApiResult;
import com.atung.parking.config.result.PageInfoResponse;
import com.atung.parking.entity.BusMessagePublish;
import com.atung.parking.enums.MessageType;
import com.atung.parking.request.query.QueryMessageRequest;
import com.atung.parking.request.save.SaveOrUpdateMessageRequest;
import com.atung.parking.response.page.MessagePublishResponse;

import javax.servlet.http.HttpServletResponse;
import java.util.List;

/**
 * @author Administrator
 */
public interface MessagePublishService {
    ApiResult saveMessageService(SaveOrUpdateMessageRequest request);

    PageInfoResponse<BusMessagePublish> superQueryListService(QueryMessageRequest request);


    ApiResult updateMessageStateService(Long id);

    void exportMessageListService(QueryMessageRequest request, HttpServletResponse httpServletResponse);

    List<MessagePublishResponse> queryOneselfMessageService(MessageType messageType);
}
